package com.itheima.domain;

public class stuCard {
    private Integer id;
    private String number;

    private Student student;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public String toString() {
        return "序号：" + id +", 卡号：" + number+"属于学号为："+student+"的学生";
    }
}
